package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.FormLabelEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface FormLabelDao {
    Long insert(FormLabelEntity entity);

    void insertBatch(List<FormLabelEntity> list);

    FormLabelEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(FormLabelEntity entity);

    List<FormLabelEntity> findEntities(@Param("param") Map<String, Object> param);

    Integer getEntitiesCount(@Param("param") Map<String, Object> param);

    Integer updateBatch(@Param("list") List<FormLabelEntity> formLabelEntities, @Param("corpid") String corpid);
}